package com.ccut;

import com.ccut.Constant.ShapeType;

public abstract class MyShape extends ShapeList {

    private ShapeType shapeType;
    private double perimeter;
    private double area;

    public MyShape() {
    }

    public MyShape(ShapeType shapeType) {
        this.shapeType = shapeType;
    }

    public abstract double calculatePerimeter();

    public abstract double calculateArea();

    public abstract void showShape();

    public ShapeType getShapeType() {
        return shapeType;
    }

    public void setShapeType(ShapeType shapeType) {
        this.shapeType = shapeType;
    }

    public double getPerimeter() {
        return perimeter;
    }

    public void setPerimeter(double perimeter) {
        this.perimeter = perimeter;
    }

    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }
}
